//
//  LaunchViewController.m
//  CityUCanteen
//
//  Created by Sierra on 2018/3/30.
//  Copyright © 2018年 iFlytek. All rights reserved.
//

#import "LaunchViewController.h"

@interface LaunchViewController ()

@end

@implementation LaunchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"Launch";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)didClickLaunchBtnAction:(UIButton *)sender {
}


#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
    id theSegue = segue.destinationViewController;
    [theSegue setValue:@"Lunch" forKey:@"tempData1"];
    
    if([segue.identifier isEqualToString:@"launchToOrder1"]) //"passValueToView2"是SEGUE连线的标识
    {
        [theSegue setValue:@"Sichuan Beef Rice Noodle" forKey:@"tempData2"];
        [theSegue setValue:@"27" forKey:@"tempData3"];
    }
    else if ([segue.identifier isEqualToString:@"launchToOrder2"])
    {
        [theSegue setValue:@"Barbecued Pork Rice" forKey:@"tempData2"];
        [theSegue setValue:@"21" forKey:@"tempData3"];
    }
    else
    {
        [theSegue setValue:@"Cart Noodles" forKey:@"tempData2"];
        [theSegue setValue:@"19.5" forKey:@"tempData3"];
        
    }
}



@end
